package com.tedu.egmybatis1.entity;

import com.tedu.egmybatis1.pojo.Product;
import com.tedu.egmybatis1.pojo.ProductVO1;
import org.apache.ibatis.annotations.Delete;
import org.apache.ibatis.annotations.Insert;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Select;

import java.util.List;

@Mapper
public interface ProductMapper {

    int insertProduct(Product product);

    ProductVO1 selectSingleProduct(Integer id);

    Product selectById(Integer id);

    int deleteById(Integer id);

    int deleteByIds(List<Integer> ids);

    int dynamicUpdate(Product product);

    int selectCount();

    Product[] selectAll();
}
